/*jslint browser: true, devel: true, bitwise: true, white: true, plusplus: true */
/*global $:true, define:true */

/**
 * @module Core
 */

define(['WID/Core/Engine', 'WID/Core/Ajax'],function(Engine,Ajax) {
"use strict";

/** 
 * @class Logger
 * @constructor
 */
return {
	log: function(logName, msg) {
		if (Engine.LOG_LEVEL > Engine.REMOTE_LOG) {
			Ajax.get('Controllers/Logger.php',{name:logName,msg:msg});
		} else if (Engine.App.LOG_LEVEL > 0) {
			console.log(logName+": "+msg);
		}
	}
};
});
